package org.jeecg.modules.monitoring.j_monitoring.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.AllSearch;
import org.jeecg.modules.monitoring.j_monitoring.entity.MGlNetworkResource;
import org.jeecg.modules.monitoring.j_monitoring.entity.home.BrandInfo;
import org.jeecg.modules.monitoring.j_monitoring.entity.home.DeviceInfo;

import java.util.List;

/**
 * @Description: 全局设备
 * @Author: xiaoyq
 * @Date:   2023-01-11
 * @Version: V1.0
 */
public interface AllSearchMapper extends BaseMapper<AllSearch> {

    /**
     * 获得全局设备列表
     * @param queryWrapper
     * @return
     */
    List<AllSearch> selectList(@Param("ew") QueryWrapper queryWrapper);

    /**
     * 根据分页参数获得全局设备分页列表
     * @param queryWrapper
     * @return
     */
    Page<AllSearch> getPageList(Page<AllSearch> pagelist, @Param("ew") QueryWrapper queryWrapper);

    /**
     * 设备信息
     * @return
     */
    DeviceInfo deviceInfo();

    /**
     * 设备名列表
     * @return
     */
    List<String> deviceNameList();

    /**
     * 品牌列表
     * @return
     */
    List<BrandInfo> getBrandList();
}
